NULL = 

AM_CPPFLAGS = \
	$(FOOTEDIT_CFLAGS) \
	-include $(CONFIG_HEADER) \
	$(NULL)

BUILT_SOURCES = footedit.vala.stamp

bin_PROGRAMS = footedit

footedit_VALASOURCES = \
	main.vala \
	utils.vala \
	uimanager.vala \
	document_manager.vala \
	document.vala \
	document_header.vala \
	doc_panel_base.vala \
	goto_line_panel.vala \
	search_panel.vala \
	replace_panel.vala \
	$(NULL)

footedit_SOURCES = \
	$(footedit_VALASOURCES:.vala=.c) \
	$(footedit_VALASOURCES:.vala=.h) \
	$(NULL)

footedit.vala.stamp: $(footedit_VALASOURCES)
	$(VALAC) -C --pkg gtk+-2.0 --pkg=gtksourceview-2.0 --pkg=gio-2.0 --basedir $(top_srcdir)/src $^
	touch $@

footedit_LDADD = \
	$(FOOTEDIT_LIBS) \
	$(NULL)

EXTRA_DIST = \
	$(footedit_VALASOURCES) \
	footedit.vala.stamp \
	$(NULL)

DISTCLEANFILES = \
	$(NULL)

